#include <string>
#include <iostream>
#include <filesystem>
#include "fqueue/fqueue.h"

int main() {
    // 没有测试，也没有完成
    std::string data_dir =  std::filesystem::current_path().string() + "/tests";
    fqueue::fqueue fqueue(data_dir);
    std::cout << "data file in " << data_dir << std::endl;
    fqueue.enqueue("Hello fqueue!\n");
    std::string buffer;
    buffer.resize(256);
    int size = fqueue.dequeue(buffer);
    buffer.resize(size);
    std::cout << "result : " << buffer << std::endl;
    return 0;
}
